﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity
{
    [Table(Name = "product_value")]
    public class ProductValue : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "product_id")]
        public int product_id { get; set; }

        /// <summary>
        ///商品货号
        /// </summary>
        [Column(Name = "item_no")]
        public String item_no { get; set; }

        /// <summary>
        ///库存
        /// </summary>
        [Column(Name = "stock_quantity"), DefaultValue(0)]
        public int stock_quantity { get; set; }

        /// <summary>
        ///市场价
        /// </summary>
        [Column(Name = "market_price")]
        public Decimal market_price { get; set; }

        /// <summary>
        ///销售价
        /// </summary>
        [Column(Name = "sell_price")]
        public Decimal sell_price { get; set; }

        /// <summary>
        ///积分
        /// </summary>
        [Column(Name = "point"),DefaultValue(0)]
        public int point { get; set; }

        

        /// <summary>
        ///成本价
        /// </summary>
        [Column(Name = "cost_price")]
        public Decimal cost_price { get; set; }

        /// <summary>
        ///销售量
        /// </summary>
        [Column(Name = "sales_volume"),DefaultValue(0)]
        public int sales_volume { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        [Column(Name = "shopid"), DefaultValue(0)]
        public int shopid { get; set; }
    }
}
